#include <iostream>
#include "GenericPlayer.h"

using namespace std;

GenericPlayer::GenericPlayer(std::string name) :name(name){
	//this->name = name;
}

GenericPlayer::~GenericPlayer()
{
}

std::string GenericPlayer::getName() {
	return name;
}

bool GenericPlayer::isBusted() const {
	if(this->getTotal() > 21) {
		return true;
	}
	else return false;
}

void GenericPlayer::bust() const {
	cout << name << " busts!" << endl;
}

void GenericPlayer::printHand() const {
	std::cout << name << ": ";
	this->printHandActual();
	std::cout << std::endl;
}